package com.lxq.sign.controller;

import com.lxq.sign.domain.PageInf;
import com.lxq.sign.service.PageInfService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;

@SuppressWarnings({"all"})
@RestController
@RequestMapping("/pageInf")
public class PageInfController {

    @Autowired
    PageInfService pageInfService;

    @PostMapping("/updatePageInf")
    public Result changeInf(@RequestBody PageInf pageInf) throws IOException {
        System.out.println(pageInf);
        Result result = pageInfService.changePageInf(pageInf);
        return result;
    }

    @GetMapping("/getLoginPageInf")
    public Result getLoginPageInf(){
        Result result = pageInfService.loginPageInf();
        return result;
    }

    @GetMapping("/getSignPageInf")
    public Result getSignPageInf(){
        Result result = pageInfService.signPageInf();
        return result;
    }
}
